Declaration of a directly derived data type in ST
Syntax |
---|
|
Meaning | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Declaration of one or more directly →derived data types, This declaration is possible within the declaration of a user-defined data type ( Use the optional →initial value
The optional attribute
The attribute
It is possible to use a directly derived data type in all places where it is possible to use the elementary base type. Example: It is possible to use the data type |
Moreover, Neuron Power Engineer allows you to specify additional data for the declaration. See "Defining description, comment, JSON string or type for variables or data types" for details.
Example |
---|
|
Unit-Test com.logicals.iec.st.tests/resources/documentationexamples/validation/DeclaredDataTypesDirectlyDerivedArrayStructureAndAccessing.iecst
Example: Definition of data types with and without attribute "SIZE" |
---|
|